import java.io.Serializable;

public class MyClass implements Serializable {
    
    //serialVersionUID如果发生改变，将导致反序列化失败
    //serialVersionUID是序列化前后的唯一标识符
    //默认如果没有人为显式定义过serialVersionUID，那编译器会为它自动声明一个！
    private static final long serialVersionUID = 2L;
    
    String street;

    public String getStreet() {
        return this.street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    @Override
    public String toString() {
        return new StringBuffer(" Street : ")
                .append(this.street)
                .toString();
    }

}
